<!DOCTYPE html>
<html>

<head>
    <title>登录豆瓣</title>
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!--font-awesome 核心我CSS 文件-->
    <link href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel='stylesheet' href='/stylesheets/login.css' />
</head>

<body>
    <div class="container">
        <div class="form row">
            <%if (error) {%>
                <div class="form-horizontal col-sm-offset-3 col-md-offset-3 error">用户名或密码错误</div>
            <%}%>
            <form class="form-horizontal col-sm-offset-3 col-md-offset-3" id="login_form" action="./users/loginAction" method="post">
                <h3 class="form-title">登录豆瓣</h3>
                <div class="col-sm-9 col-md-9">
                    <div class="form-group">
                        <i class="fa fa-user fa-lg"></i>
                        <input class="form-control required" type="text" placeholder="Username" name="username" autofocus="autofocus" maxlength="20"
                        />
                    </div>
                    <div class="form-group">
                        <i class="fa fa-lock fa-lg"></i>
                        <input class="form-control required" type="password" placeholder="Password" name="password" maxlength="20" />
                    </div>
                    <div class="form-group">
                        <label class="checkbox">  
                            <input type="checkbox" name="remember" value="1"/> 下次自动登录 
                        </label>
                        <hr />
                    </div>
                    <div class="form-group">
                        <a href="./register" id="register_btn" class="">立即注册</a>
                        <input type="submit" class="btn btn-success pull-right" value="登录" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>

</html>